from BCEmbedding import EmbeddingModel

model = EmbeddingModel(model_path="/path/to/bce-embedding-vase-v1")
texts = ["样例文本1", "样例文本2"]
embeddings = model.encode(texts)  # 批量生成向量
